/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dotexe.webframework.core.eventargs;

/**
 *
 * @author jovan.tomasevic
 */
public enum EventType {
    None(0),
    Click (2),
    DblClick (3),
    Blur (4),
    CellEdit (5),
    DesignEvent (6);
    EventType(int v){
        value = v;
    }
    private final int value;
    public static EventType getFromInt(int value){
        switch(value){
            case 2: return EventType.Click;
            case 3: return EventType.DblClick;
            case 4: return EventType.Blur;
            case 5: return EventType.CellEdit;
            case 6: return EventType.DesignEvent;
        }
        return EventType.None;
    }
}
